package org.pearl.dubbodemoconsume;

import org.apache.dubbo.config.annotation.DubboReference;
import org.pearl.produce.api.service.DemoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by TD on 2021/9/6
 */
@RestController
@RequestMapping("/user")
public class TestController {


    @DubboReference(check = false,version ="1.0.0")
    DemoService demoService;

    @RequestMapping("/test")
    public String test() {
       return demoService.sayName("haha");
    }
}
